Gatsby Default StarterGatsby logo

#Network

Go to Packet Tracer

  • Create a new Router-PT-Empty

  • ![[Pasted image 20240405110538.png]]

  • i add two interfaces on the router NM-1CGE and NM-1S

  • ![[Pasted image 20240405120338.png]]

  • ![[Pasted image 20240405111835.png]]

  • to connect from Packet Tracer to router directly, connect with a blue cable from RS232 (on the laptop/device) > to Console (on the router)

  • and go to the terminal of the laptop to connect router cli directly with PuTTy settings as in the image

  • ![[Pasted image 20240405112007.png]]

  • enable

  • configure terminal

  • enable secret class - to put a password

  • no ip domain-lookup

  • line console 0 - to configure the console line connected to the router

  • password cisco

  • login

  • ![[Pasted image 20240405112554.png]]

  • exit

  • C^z

  • show running-config - to see the running configuration

  • configure terminal

  • hostname R1

  • banner motd &

  • paste ASII art and put & at the end

  • C^z

  • R1# copy running-config startup-config

  • enter

  • write

  • reload

  • enter

  • ![[Pasted image 20240405113210.png]]

  • now we are in the R1 page

  • we enter the password ==cisco== for the console

  • enable

  • now we enter the password of the router ; ==class==

  • conf t

  • line vty 0 4 - to connect the terminal remotely (à distance), could be 4 or another number

  • password cisco

  • login

  • do write

  • ![[Pasted image 20240405113814.png]]

  • exit

  • i'm on R1(config)#

  • exit

  • i'm on R1#

  • write

  • show ip interface brief

  • conf t

  • interface gigabitEthernet 0/0

  • ip address 192.168.1.254 255.255.255.0

  • no shutdown

  • exit

  • interface serial 1/0

  • ip address 10.42.42.1 255.255.255.252

  • no shutdown - didn't make it work directly

  • do write

  • do reload

  • now we can delete the blue cable

  • we configure the ips of the laptops staticly

  • we go to the command prompt of the laptop and ping the gateway to verify

  • ping 192.168.1.254

  • we ping the address of the serial cable between the routers

  • ping 10.42.42.1

  • it works but we cannot ping the other interface 10.42.42.2

  • telnet 192.168.1.254 - to connect to the router cli

  • password : cisco

  • enable

  • password : class

![[Pasted image 20240405120634.png]]

  • show ip route
  • ip route 192.168.2.0 255.255.255.0 10.42.42.2 - to connect to the second network LAN from the first LAN we need to pass through the serial Se1/0 - ==but we don't use this command==

on first laptop's command prompt:

  • conf t
  • router rip
  • network 192.168.1.0 - we put the network address first
  • network 10.42.42.0 - we put the network address of the serial cable between the routers, this helps connecting the different LANs to each other without using the ip route command
  • do write
  • sh ip route

on second laptop's command prompt:

  • telnet 192.168.2.254
  • password cisco
  • enable
  • password class
  • sh ip int b
  • router rip
  • network 192.168.2.0
  • network 10.42.42.0
  • do write
  • show ip route
  • debug ip rip
  • no debug ip rip - to stop the the debugging process in the modem
  • exit

we do tracert to verify the route of the connection from a laptop

  • go to command prompt of the laptop2
  • tracert 192.168.1.10 - we see the route of the passage
  • ![[Pasted image 20240405123758.png]]

Configuring DHCP in this network

We'll put 2 DHCP scopes in this network.

  • Connect to the CLI of the Router1 with the Laptop1

  • telnet 192.168.1.254

  • passwords and enter

  • conf t

  • ip dhcp pool GREEN

  • network 192.168.1.0 255.255.255.0

  • default-router 192.168.1.254

  • exit

  • we do the same for the second router

  • get the client's on DHCP in the IP configuration

  • on the router cli;

  • sh ip dhcp bind

  • ![[Pasted image 20240405140628.png]]

[[TFTP]] Configuration:

Trivial FTP works on UDP doesn't need login and password

  • We create a server and connect to the switch in the first LAN.
  • Change the server's IP address to 192.168.1.101

![[Pasted image 20240405140918.png]]

  • connect to the cli of the Router1
  • copy startup-config tftp
  • 192.168.1.101 - to connect the config to the server
  • enter
  • we do the same process connecting to Router2 by telnet

![[Pasted image 20240405141358.png]]

  • now if we delete a router and create a new router, we can do copy the startup-config to be the running-config with tftp. we'll fetch the data from the server.